//#include "daytime.h"

#include <muduo/base/Logging.h>
#include <muduo/net/EventLoop.h>

#include <unistd.h>

using namespace muduo;
using namespace muduo::net;
/*
void newConnection(int sockfd, const InetAddress& peerAddr)
{
  std::cout<<"newConnection accepted a connection from :"<<peerAddr.toIpPort().c_str();
  ::write(sockfd, "How are you?\n", 13);
  ::close(sockfd);
}
*/
void test(void *arg)
{
  int id = static_cast<int>(arg);
  std::cout<<" test pass "<< id <<std::endl;
}

class A
{
public:
  A(int i)
  {
    a_ = i;
  }
  ~A();

  /* data */
private:
  int a_;
};

int main()
{
  A *a;
  a = A(1);
    /*
  LOG_INFO << "pid = " << getpid();
  EventLoop loop;

  InetAddress listenAddr(2013);
  
  muduo::net::Acceptor acpt(&loop, listenAddr, true);
  acpt.setNewConnectionCallback(newConnection);

  acpt.listen();


  loop.runInLoop(test);

  loop.loop();*/
}

